package com.xy.frame.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xy.frame.service.UserService;

@Controller
@RequestMapping("/demo")
public class DemoController {

	Logger logger = LoggerFactory.getLogger(DemoController.class);
    @Autowired
    UserService userService;

	@RequestMapping(value = "/icon", method = RequestMethod.GET)
	public String select() {
		if (logger.isDebugEnabled()) {
			logger.debug("请求【/demo/icon】响应页面【/view/jump/demo/icon.jsp】");
		}
		return "jump/demo/icon";
	}

	@RequestMapping(value = "/table", method = RequestMethod.GET)
	public String xpFrame() {
		if (logger.isDebugEnabled()) {
			logger.debug("请求【/demo/table】响应页面【/view/jump/demo/table.jsp】");
		}
		return "jump/demo/table";
	}
}